package main
import (
	"fmt"
)

func main(){

	var maps map[string]string=make(map[string]string,3)
	maps["no1"]="no1"
	maps["no2"]="no2"
	maps["no3"]="no3"

	for k,val := range maps{
		fmt.Printf("key=%v val=%v\n",k,val)
	}


	var doubleMap =make(map[string]map[string]string)
	doubleMap["demo1"]=make(map[string]string,2)
	doubleMap["demo1"]["name"]="刘曜宇"
	doubleMap["demo1"]["age"]="22"



	doubleMap["demo2"]=make(map[string]string,2)
	doubleMap["demo2"]["name"]="郭书燕"
	doubleMap["demo2"]["age"]="23"



	for _,v1:=range doubleMap{
		for k2,v2:=range v1 {
			fmt.Println(k2,v2)
		}
	}


	fmt.Println(doubleMap)

	fmt.Println(len(doubleMap))
}
